package com.feicheng.lanniao.controller.pc;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import com.feicheng.lanniao.result.ResultInfo;
import com.feicheng.lanniao.service.QuotaRecordService;

@RestController
@RequestMapping("/lanniao-user/quotarecord")
public class QuotaRecordPcController {
	@Autowired
	QuotaRecordService iQuotaRecordService;
	@PutMapping("/info")
	public ResultInfo update(Integer clientId, Integer orderTypeId) {
		return iQuotaRecordService.updateQuota(clientId, orderTypeId);
	}
	@GetMapping("/info")
	public ResultInfo get(Integer clientId, Integer orderTypeId) {
		return iQuotaRecordService.getQuota(clientId, orderTypeId);
	}
	@PostMapping("/init")
	public ResultInfo initQuota(Integer clientId) {

		return iQuotaRecordService.initQuota(clientId);
	}

}
